package service;

import java.util.List;
import java.util.Map;
import entity.Book;
import entity.Category;
import entity.Product;

public interface MainService {
	public List<Category> findLeftCategory() throws Exception;
	public Map<Integer,String> findCategoryName(int id)throws Exception;
	public Book findBookById(int id)throws Exception;
	public List<Book> findBooks(int page,String value,int cid)throws Exception;
	public int findTotalPage(int cid)throws Exception;
	public List<Category> findLeftBookListCategory(int pid)throws Exception;
	public List<String> findNavigation(int cid) throws Exception;
	public int  getCount(int id)throws Exception;
	public List<Book> findRecommend() throws Exception;
	public List<Product> findNew() throws Exception;
	public List<Product> findHot(final int size) throws Exception ;
}
